package com.jdrx.ocp.beans.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Author: Huangxg
 * @Date: 2018/11/20 9:55
 */
@ApiModel(value = "更新用户DTO" , description = "更新用户信息")
public class UpdateUserInfoDTO {

    @NotNull
    @ApiModelProperty(value = "数据ID" ,required = true)
    private Long id;

    @ApiModelProperty(value = "所属部门ID" , required = true)
    private Long deptId;


    @Length(min = 0,max = 30)
    @ApiModelProperty(value = "用户名称" , required = true)
    private String name;

    @ApiModelProperty(value = "用户密码" , required = true)
    private String pwd;

    @ApiModelProperty(value = "是否超级管理员" ,required = true)
    private Short isAdmin;
/*

    @ApiModelProperty(value = "是否系统管理员" ,required = true)
    private Short isSystem;
*/

    @Length(min = 0,max = 255)
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态 1正常  0禁用")
    private Short status;

    @Length(min = 0,max = 25)
    @ApiModelProperty(value = "用户手机号")
    private String phone;
    @Length(min = 0,max = 25)
    @ApiModelProperty(value = "用户邮箱")
    private String email;
    @Length(min = 0,max = 25)
    @ApiModelProperty(value = "用户名称")
    private String realName;
    @ApiModelProperty(value = "拥有的角色id列表,以英文逗号隔开")
    private String roleIds;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Short getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Short isAdmin) {
        this.isAdmin = isAdmin;
    }
/*
    public Short getIsSystem() {
        return isSystem;
    }

    public void setIsSystem(Short isSystem) {
        this.isSystem = isSystem;
    }*/

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }
}
